package com.sakura.cherish.springboot.mybatis.practice.core.Impl;

import com.sakura.cherish.springboot.mybatis.practice.core.IUser;
import com.sakura.cherish.springboot.mybatis.practice.dao.UserDao;
import com.sakura.cherish.springboot.mybatis.practice.model.UserModel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class UserService implements IUser {
    @Autowired
    UserDao userDao;

    @Override
    public UserModel getUser(String name) {
        return userDao.getUser(name);
    }
}
